﻿package cn.flashk.map.player
{
    import flash.display.*;
    import flash.events.*;
    import flash.filters.*;

    public class PlayerShaow extends Bitmap
    {

        public function PlayerShaow()
        {
            this.addEventListener(Event.ENTER_FRAME, alphaHide);
            this.filters = [new BlurFilter(4, 4, 1)];
            return;
        }// end function

        private function alphaHide(event:Event) : void
        {
            this.alpha = this.alpha - 0.007;
            if (this.alpha <= 0)
            {
                this.removeEventListener(Event.ENTER_FRAME, alphaHide);
                this.parent.removeChild(this);
                this.bitmapData.dispose();
            }
            return;
        }// end function

    }
}
